namespace CSharpPro._1021;

public class Father
{
    public string Name { get; set; }
    public int Age { get; set; }
    public string Occupation { get; set; } // 职业

    public Father(string name, int age, string occupation)
    {
        Name = name;
        Age = age;
        Occupation = occupation;
    }

    // 父亲的职责：工作
    public virtual void Work()
    {
        Console.WriteLine($"{Name}从事{Occupation}工作，努力赚钱养家");
    }
    
}